﻿CREATE TRIGGER Images_Tracking_Delete
ON [dbo].[Images] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.Images_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.Images_Tracking s JOIN DELETED i
    ON s.ImageID = i.ImageID
END














